<?php
	echo $this->Html->css('addition-style');
	echo $this->Html->script('more');
?>
<div id="main-form">
	<h1><?php
		if ( $id == null ) {
			
			echo "Add Category";
			
		} else {
			
			if ( $action == null ) {
				
				echo "Edit Category: ";
				
			} else {

				echo "Delete Category: ";				
				
			}
			
		}
		
		?></h1>
	<style>
		
		.admin-two-cols {
			width: 85%;
			min-height: 105px;
		}
		.admin-two-cols-1 {
			padding: 5px;
			float: left;
			width: 80%;
			margin-top: 15px;
		}
		.admin-two-cols-2 {
			padding: 5px;
			float: left;
			width: 15%;
			margin-top: 15px;
		}
		
	</style>

<?php echo $this->Form->create(); ?>
	<div class="admin-two-cols">
		<div class="admin-two-cols-1">
			<label for="">Name</label>
			<?php
				echo $this->Form->input('name', array('label' => false, 'class' => 'form-control', 'required' => 'required'));
			?>
		</div>
		<div class="admin-two-cols-2">
			<label for="">Status</label>
			<?php
				//echo $this->Form->input('status_codes', array('label' => false, 'div' => 'select-input'));
				echo $this->Form->input('status', array('label' => false, 'div' => 'select-input', 'options' => array('A' => 'Active', 'I' => 'Inactive')));
			?>
		</div>
	</div>
	<div class="right-group">
		<div class="form-group">
			<button type="submit" class="btn btn-primary" value="save">save</button>
			<?php
			echo $this->Html->link('Reset', array('controller' => 'categories', 'action' => 'index'), array("class" => "btn"));
			?>
		</div>
	</div>
</div>